#!/bin/bash 
for ip in `cat ip.txt`
if  grep -q -w $1 /etc/hosts; then
	
	echo $1 has been added!
else
	echo `nslookup -q=AAAA $1 2001:778::37 | awk -F "address" 'NR==5 {print $2}' | sed '/^$/d' | sed 's/^[ ]*//g' ` $1  | tee -a  /etc/hosts
fi

